package com.common.ui.controls;

import java.awt.Frame;

import javax.swing.ImageIcon;
import javax.swing.JComponent;
import javax.swing.JLabel;

public class DefaultModalProgressDialog extends ModalProgressDialog 
{
	private JLabel statusLabel;
	
	public DefaultModalProgressDialog(ModalProcess process,Frame owner)
	{
		super(process,owner);
	}
	
	public JComponent getStatusComponent()
	{
		statusLabel = new JLabel("Please wait ...",
				new ImageIcon(getClass().getClassLoader().getResource("com/common/ui/resc/loading.gif")),
				JLabel.LEFT);
		return statusLabel;
	}
	
	public static void main(String[] args)
	{
		
	}

	@Override
	public void updateInfo(Object info) 
	{
		statusLabel.setText(info.toString());
	}
}
